package com.example.basemvvmkotlin.net

import com.example.lib_base.base.http.ApiResponse
import com.example.lib_base.base.vm.BaseViewModel

class MainVm : BaseViewModel() {

    fun testApi(){
//        launchOnIO {
//            ApiClient.getInstance().requestSafely(UserApiService::class.java){
//                it.hotPushList()
//            }.doSuccess {
//
//            }.doFailure { code, msg ->  }
//                .doError { ex, error ->  }
//                .procceed()
//        }
    }

    override fun <T : ApiResponse<*>> serverResponseObj(bean: T, code: Int, message: String) {
    }


}